{include file="plugins/function.estadisticas.php"}

{literal}
<div id="chartdiv" style=" 
	width	: 100%;
	height	: 300px;"></div>
<script type="text/javascript" src="http://www.amcharts.com/lib/3/amcharts.js"></script>
<script type="text/javascript" src="http://www.amcharts.com/lib/3/serial.js"></script>
<script type="text/javascript" src="http://www.amcharts.com/lib/3/themes/none.js"></script>

<script type="text/javascript">
	var dataChart = $.get('datachart/in_review');
	var chart = AmCharts.makeChart("chartdiv", {
	    "theme": "none",
	    "type": "serial",
	    "dataProvider": [{
	        "seccion": "Informatica",
	        "num": 2
	    }, {
	        "seccion": "Bioinformatica",
	        "num": 5
	    }, {
	        "seccion": "Quimica",
	        "num": 7
	    }],
	    "valueAxes": [{
	        "title": "Numero articulos en revision"
	    }],
	    "graphs": [{
	        "balloonText": "Numero articulos in [[category]]:[[value]]",
	        "fillAlphas": 1,
	        "lineAlpha": 0.2,
	        "title": "Numero articulos",
	        "type": "column",
	        "valueField": "num"
	    }],
	    "depth3D": 20,
	    "angle": 30,
	    "rotate": true,
	    "categoryField": "seccion",
	    "categoryAxis": {
	        "gridPosition": "start",
	        "fillAlpha": 0.05,
	        "position": "left"
	    },
		"exportConfig":{
			"menuTop":"20px",
	        "menuRight":"20px",
	        "menuItems": [{
	        "icon": 'http://www.amcharts.com/lib/3/images/export.png',
	        "format": 'png'	  
	        }]  
	    }
	});
</script>
{/literal}